﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.exam.ExamList" %>
<%@ Import Namespace="E.Model" %>
<%@ Import Namespace="E.Enum" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>试卷管理</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript">
    SetCheckBoxProperty("SltAllbtn", "p_chkb");
  </script>
</head>
<body>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block" style="height:80px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;认证考试试卷管理</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">试卷类型：</div>
        <div class="fl">
          
          <% if (certificateList != null && certificateList.Count > 0) { %>
          <select id="CertificateSlt" name="CertificateSlt">
            <option value="-1">请选择认证类别</option>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in certificateList) { %>
              <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <% } %>
          
        </div>
        <div class="fl" style="line-height:23px;">&nbsp;地区：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
            <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" /></div>
        <div class="fl">&nbsp;&nbsp;<a href="/exam/ExamEdit.aspx?act=n"><img alt="" src="/images/btn/add_2.gif" /></a></div>
      </div>
    </div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (examList != null && examList.Count > 0) { %>      
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_cb"><input type="checkbox" id="SltAllbtn" onclick="SelectAllCheckBox();" class="chkb" /></div>
          <div class="d_r_et">试卷名称</div>
          <div class="d_r_ec">试卷类型</div>
          <div class="d_r_est">考试时间</div>
          <div class="d_r_eo">操作</div>
        </div>
        
        <% foreach (ShortExamInfoModel model in examList) { %>
        <div class="data_rows">
          <div class="d_r_cb"><input type="checkbox" id="chkb_<%=model.ID %>" name="p_chkb" value="<%=model.ID %>" class="chkb" onclick="SelectThis();" /></div>
          <div class="d_r_et"><%=model.Title %></div>
          <div class="d_r_ec"><%=EnumClass.GetExamCategoryName(model.CategoryID) %></div>
          <div class="d_r_est"><%=model.StartTime.ToString("yyyy.M.d") %></div>
          <div class="d_r_eo"><a href="/exam/ExamView.aspx?id=<%=model.ID %>&cid=<%=(int)model.CategoryID %>">查看</a></div>
        </div>
        <% } %>
        
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      <div style="margin:8px 0 0 0;">
        <input type="hidden" id="arrv" name="arrv" />
        <img alt="" src="/images/btn/del_s.gif" class="cursor" onclick="DeleteSelection_E();" />
      </div>
      
    <% } else { %>
    <% } %>
      
    </div>
    
      <% if (act == "s") { %>
    <script type="text/javascript">
      $("#AreaSlt").val('<%=areaid %>');
      $("#CertificateSlt").val('<%=certificateid %>');      
    </script>
      <% } %>
  </form>
</body>
</html>
